feat: Interactive use of Selene from python#135
Merged
jake-arkinstall merged 12 commits intomainfrom Feb 24, 2026
Merged
Conversation
…etadata function to force metadata to be written immediately
…t relying on data being available in the stream when reading (instead of introducing timeouts etc)
…ernal buffer read. As reading from an output stream is new functionality that is not contained in the Write trait, I opted to swap out the 'Box<dyn Write>' for a direct enum.
…should not be problematic for c compatibility
This was referenced Feb 24, 2026
jake-arkinstall
pushed a commit
that referenced
this pull request
Feb 24, 2026
🤖 I have created a release *beep* *boop* --- ## [0.2.5](selene-core-v0.2.4...selene-core-v0.2.5) (2026-02-24) ### Features * Add __version__ attributes ([#137](#137)) ([379ae01](379ae01)) * Interactive use of Selene from python ([#135](#135)) ([db3028d](db3028d)) * Stim improvements (more ops + state printing) ([#115](#115)) ([867d5e5](867d5e5)) ### Bug Fixes * add `___barrier` to Helios QIS for QIR emulation ([#136](#136)) ([dfbc4c3](dfbc4c3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
jake-arkinstall
pushed a commit
that referenced
this pull request
Feb 24, 2026
🤖 I have created a release *beep* *boop* --- ## [0.2.11](selene-sim-v0.2.10...selene-sim-v0.2.11) (2026-02-24) ### Features * Add __version__ attributes ([#137](#137)) ([379ae01](379ae01)) * Interactive use of Selene from python ([#135](#135)) ([db3028d](db3028d)) * Quest performance improvements ([#133](#133)) ([af640e9](af640e9)) * Stim improvements (more ops + state printing) ([#115](#115)) ([867d5e5](867d5e5)) * Test on QIS snapshots ([#134](#134)) ([c4d58ab](c4d58ab)) ### Bug Fixes * add `___barrier` to Helios QIS for QIR emulation ([#136](#136)) ([dfbc4c3](dfbc4c3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce Interactive mode for selene usage.
The principle is that one may control selene live in python, without a prior compilation step. This allows users to try things out in real-time, e.g. respond to measurement results, optimiser outputs, and see metrics as they evolve.
Todo list:
There are currently no plans for an interactive error model mode, as the error model's mode of operation specifically requires a live simulator to control and request measurements from, rather than it being a simple 1:1 'requests in, commands out' approach.